<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>深航服务信息系统</title> 
<script src="<c:url value='/scripts/common.js'/>"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link rel="stylesheet" type="text/css" media="all"	href="<c:url value='/styles/layout.css'/>" />
<script src="<c:url value="/scripts/date.js"/>" language="javascript"></script>
</head>

<body leftmargin="0" topmargin="0">
<html:form action="transferFlowMonitor.html?method=doMonitor" method="post" styleId="flightTransferInfoForm">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td class="home-content-title">
    <img src="images/home_ico_listTitle.gif" width="22" height="20" align="absmiddle">
     &nbsp;中转航班服务流程监控</td>
  </tr>
  <tr>
	<td height="30" class="home-search-space">
		<table>
            <tr height="30" class="home-search-space">
                <td align=right>航班号：</td>
                <td>
                <html:text property="inFlightNum" styleId="inFlightNum" styleClass="home-table-inputbox" size="12"/></td>
                <td align=right>日期：</td>
                <td>
                <input type="text" name="transferDate" size="12" value="<fmt:formatDate value="${flightTransferInfoForm.transferDate}" pattern="yyyy-MM-dd"/>" readonly="readonly" id="eia" class="home-table-inputbox"> 
                <img src="images/date.gif" width="16" height="15" onclick="fPopCalendar(transferDate,transferDate);return false"/></td>
                <td align=right>始发站：</td>
                <td>
                <html:text property="departureAirport" styleId="departureAirport" styleClass="home-table-inputbox" size="12"/>
                <td align=right>终点站：</td>
                <td>
                <html:text property="targetAirport" styleId="targetAirport" styleClass="home-table-inputbox" size="12"/></td>
			    <td><input name="Submit2" type="button" class="home-inputBtn" value="查询" onClick="javascript:transferSearch();"/>
			</td>
            </tr>
	    </table>
	  </td>
   </tr>
   <tr> 
    <td valign="top"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="home-table-topline"> </td>
        </tr>
        <tr> 
          <td class="home-table-leftline"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-tool-content02"><sasis:page items="${flightTransferInfos}"/></td>
              </tr>
              <tr> 
                <td align="center" valign="top" class="home-edittable-space">	
		          <table width="100%" border="0" cellpadding="2" cellspacing="0" class="list_bordercolor">
                    <tr> 
                      <td width="5%" class="home-list-title">始发航站</td>
                      <td width="5%" class="home-list-title">进港航班</td> 
                      <td width="5%" class="home-list-title">航班日期</td>
                      <td width="5%" class="home-list-title">计达</td>
                      <td width="5%" class="home-list-title">预达</td>
                      <td width="5%" class="home-list-title">中转航站</td>
                      <td width="5%" class="home-list-title">出港航班</td>
					  <td width="5%" class="home-list-title">中转总人数</td>
					  <td width="5%" class="home-list-title">中转总行李数</td>
					  <td width="5%" class="home-list-title">中转总行李重量</td>
					  <td width="5%" class="home-list-title">计出</td>
                      <td width="5%" class="home-list-title">预出</td>
                      <td width="5%" class="home-list-title">时间间隔</td>
                      <td width="5%" class="home-list-title">目的航站</td> 
                      <td width="5%" class="home-list-title">&nbsp;流程监控</td>
                    </tr>
                    <c:forEach var="results" items="${flightTransferInfos}" varStatus="status">
                    <tr height=25>
                      <td class="home-list-content">&nbsp;<c:out value="${results.departureAirport}"/></td>
                      <td class="home-list-content">&nbsp;<c:out value="${results.inFlightNum}"/></td>           
                      <td class="home-list-content">&nbsp;<fmt:formatDate value="${results.sia}" pattern="yyyy-MM-dd"/></td>
                      <td class="home-list-content">&nbsp;<fmt:formatDate value="${results.sia}" pattern="yyyy-MM-dd"/></td>
                      <td class="home-list-content">&nbsp;<fmt:formatDate value="${results.eia}" pattern="yyyy-MM-dd"/></td>
                      <td class="home-list-content">&nbsp;<c:out value="${results.transferAirport}"/></td>
                      <td class="home-list-content">&nbsp;<c:out value="${results.outFlightNum}"/></td>
                      <td class="home-list-content"><a href='psgInfo_transfer.html'>&nbsp;<c:out value="${results.personSumCount}"/></a></td>
                      <td class="home-list-content"><a href='#' onclick="window.open('baggage_view.html',null,'top=200,height=200,width=400,status=no,toolbar=no,menubar=no,location=no')">&nbsp;<c:out value="${results.luggageSumCount}"/></a></td>
                      <td class="home-list-content">&nbsp;<c:out value="${results.luggageSumWeight}"/></td>
                      <td class="home-list-content">&nbsp;<fmt:formatDate  value="${results.soa}" pattern="yyyy-MM-dd HH:mm"/></td>
                      <td class="home-list-content">&nbsp;<fmt:formatDate  value="${results.eoa}" pattern="yyyy-MM-dd HH:mm"/></td>
                      <td class="home-list-content">&nbsp;<c:out value="${results.interval}"/></td>    
                      <td class="home-list-content">&nbsp;<c:out value="${results.targetAirport}"/></td>
                    <td class="home-list-content" width="50">
                        <img src="./images/view.gif" width="14" height="14" style="cursor:hand"  alt="流程监控"  onClick="window.location='./workflowmonitor.html?method=processInstance&model=transfer&id=<c:out value="${results.procInstId}"/>'"/>&nbsp;
                    </td>
                    </tr> 
		            </c:forEach> 
                  </table>
                </td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td height="12"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-bottom-left">&nbsp;</td>
                <td class="home-table-bottom-bg">&nbsp;</td>
                <td class="home-table-bottom-right">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</html:form> 
</body>
</html>
<script type="text/javascript">
function transferSearch(){
	//alert("come search!");
	//将需要验证的ID传入数组
	var propertyArray = new Array();
	propertyArray.push("inFlightNum");
	propertyArray.push("targetAirport");
	propertyArray.push("departureAirport");
	//alert(propertyArray.length)
	//把验证数组传入验证特殊字符函数
	var result=checkSpecialInput(propertyArray);
	//alert("result="+result);
	if(result==true||result==null){
	     //alert(result);
	    flightTransferInfoForm.submit();
	     
	}else{
	    alert(result);
	}
} 
</script>